import DataExtraction.BSAHeader.BSAHeader

class BSAHeaderIMG(DataExtraction.BSAHeader.BSAHeader):
    def __init__(self, width = 0, height = 0, offset_x = 0, offset_y = 0,
                 flags = 0, record_size = 0, uncompressed_size = 0):
        DataExtraction.BSAHeader.BSAHeader.__init__(self, width, height)
        self._offset_x = offset_x
        self._offset_y = offset_y
        self._flags = flags
        self._record_size = record_size
        self._uncompressed_size = uncompressed_size
        
    def __repr__(self):
        return "BSAHeaderIMG: [width=" + str(self.get_width()) + "|height=" +\
            str(self.get_height()) + "|offset_x=" + str(self._offset_x) + "|offset_y=" +\
            str(self._offset_y) + "|flags=" + str(self._flags) + "|record_size=" +\
            str(self._record_size) + + "|uncompressed_size=" + str(self._uncompressed_size) +\
            "]"
    
    # getters
    def get_offset_x(self):
        return self._offset_x
    
    def get_offset_y(self):
        return self._offset_y
    
    def get_flags(self):
        return self._flags
    
    def get_record_size(self):
        return self._record_size
    
    def get_uncompressed_size(self):
        return self._uncompressed_size
    
    # setters
    def set_offset_x(self, offset_x):
        self._offset_x = offset_x
        
    def set_offset_y(self, offset_y):
        self._offset_y = offset_y
        
    def set_flags(self, flags):
        self._flags = flags
    
    def set_record_size(self, record_size):
        self._record_size = record_size
        
    def set_uncompressed_size(self, uncompressed_size):
        self._uncompressed_size = uncompressed_size